package com.ev.framework.exception;/**
 * @Author xy
 * @Date 2020/6/2 8:38
 * @Description
 */

/**
 * 文件名称： com.ev.framework.exception.AttachmentException.java</br>
 * 初始作者： xy</br>
 * 创建日期： 2020/6/2 8:38</br>
 * 功能说明： TODO <br/>
 * =================================================<br/>
 * 修改记录：<br/>
 * 修改作者        日期       修改内容<br/>
 * ================================================<br/>
 * Copyright (c) 2020-2021 .All rights reserved.<br/>
 */
public class AttachmentException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    private String msg;
    private int code = 500;

    public AttachmentException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public AttachmentException(String msg, Throwable e) {
        super(msg, e);
        this.msg = msg;
    }

    public AttachmentException(String msg, int code) {
        super(msg);
        this.msg = msg;
        this.code = code;
    }

    public AttachmentException(String msg, int code, Throwable e) {
        super(msg, e);
        this.msg = msg;
        this.code = code;
    }

    public AttachmentException() {
        super();
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
